﻿using GnpFine.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GnpFine.Application.NmpaSystem
{
    /// <summary>
    /// 即时库存
    /// </summary>
    [SugarTable("InstrumentStore", "器械即时库存")]
    [NmpaTable]
    [TenantAttribute(SqlSugarConst.NmpaConfigId)]
    public class InstrumentStee
    {
        /// <summary>
        /// 雪花Id
        /// </summary>
        [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = false)]
        public long Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间", IsOnlyIgnoreUpdate = true)]
        public virtual DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", IsOnlyIgnoreInsert = true)]
        public virtual DateTime? UpdateTime { get; set; }


        /// <summary>
        /// 软删除
        /// </summary>
        [SugarColumn(ColumnDescription = "软删除")]
        public virtual bool IsDelete { get; set; } = false;


         [SugarColumn(ColumnName = "INSTRUMENT_CODE")]
         public string INSTRUMENT_CODE { get; set; }//厂商药品编码

         [SugarColumn(ColumnName = "INSTRUMENT_NAME")]
         public string INSTRUMENT_NAME { get; set; }//厂商药品名称

         [SugarColumn(ColumnName = "REGIST_NO")]
         public string REGIST_NO { get; set; }//批准文号

         [SugarColumn(ColumnName = "BATCH_NO")]
         public string BATCH_NO { get; set; }//批号

         [SugarColumn(ColumnName = "VALIDITY")]
         public DateTime VALIDITY { get; set; }//有效期至

         [SugarColumn(ColumnName = "PRODUCER")]
         public string PRODUCER { get; set; }//生产厂家

         [SugarColumn(ColumnName = "SPEC")]
         public string SPEC { get; set; }//规格*/

        [SugarColumn(ColumnName = "UNIT")]
        public string UNIT { get; set; }//单位

        [Column(TypeName = "decimal(23,10)")]
        public decimal QTY { get; set; }//数量

        [SugarColumn(ColumnName = "DESTROY_NO")]
        public string DESTROY_NO { get; set; } //消毒批号


    }
}
